#include <iostream>

template<typename T>
class Singleton
{
public:
    static T& getinstance()
    {
        static T instance;
        return instance;

    }
protected:
    Singleton(){}
};

class Student:public Singleton<Student>
//继承的类模板参数是类本身crtp
{
public:
Student(){}
};


int main()
{
    Student::getinstance();
    return 0;
}
